#Makefile for CMPS 258 Assigmnent 2 Part 2

all : spy

spy: graph.o path.o spy.o errexit.o
	gcc -o"spy" ./graph.o ./path.o ./spy.o ./errexit.o   

graph.o : graph.c
	gcc -c graph.c

path.o : path.c
	gcc -c path.c

spy.o : spy.c
	gcc -c spy.c

errexit.o : errexit.c
	gcc -c errexit.c

clean: clean-objects

clean-all: clean-objects
	rm -f spy

clean-objects:
	rm -f *.o